import routes from "./routes"
import useRouteGuard from './hook/useRouteGuard';//自定义hook
import"./App.css"
import { Suspense } from "react";
import LayoutBase from "@/layout";


function App() {
    let element = useRouteGuard({routes,keyToken:'qf-token'})
    
  return (
    <div className="App">
        <LayoutBase>
            <Suspense fallback={<h1>正在加载</h1>}>
                {element}
            </Suspense>
        </LayoutBase>
    </div>
  );
}

export default App;
